<?php
include_once("$config[webroot]/module/offer/includes/offer_class.php");

class offer_api extends offer
{
	function offer_api()
	{
		parent::offer();
	}
	
	function update_uid($array)
	{	
		$this->offer_merge_user($array);
	}
	function delete_buy_uid($array)
	{
		$this->db->query("select id,userid from ".INFO." where userid='$buid'");
		while($v=$this->db->fetchRow())
		{
			$this->del_info($v['id'],$v['userid']);
		}
	}
}
?>